<?php
	session_start();
	include_once"config/config.php" ;
	if(!isset($_SESSION['admin']) || empty($_SESSION['admin']) ){
		show_msg('请登录！','login.php');
	}
	if(isset($_GET['logout']) && $_GET['logout'] == 'yes' ){
		//清空session
		session_destroy();
		show_msg('退出成功！','login.php');
	}

?>